From ea9081ae3b983aab964042460abd5b15c735c7a7 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 14 Sep 2012 17:24:33 -0400 Subject: [PATCH] cssimage: Make cross-fades cross-fade properly We need to use OPERATOR_SOURCE to properly fade out the start image when the end image contains transparency. --- gtk/gtkcssimagecrossfade.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gtk/gtkcssimagecrossfade.c b/gtk/gtkcssimagecrossfade.c index f7f8a6312a..424703af85 100644 --- a/gtk/gtkcssimagecrossfade.c +++ b/gtk/gtkcssimagecrossfade.c @@ -121,6 +121,7 @@ gtk_css_image_cross_fade_draw (GtkCssImage *image, cairo_get_target (cr), width, height); cairo_set_source_surface (cr, surface, 0, 0); + cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE); cairo_paint_with_alpha (cr, cross_fade->progress); cairo_surface_destroy (surface); -- 2.30.2